﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASKM.Rachao.Model.Exceptions
{
    public class RachaoBusinessException: ApplicationException
    {

        #region Attributes

        private bool _status;
        private string[] _errorMessages;

        #endregion

        #region Properties
        
        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }
        
        public string[] ErrorMessages
        {
            get { return _errorMessages; }
            set { _errorMessages = value; }
        }
        

        #endregion

        #region Ctor

        public RachaoBusinessException(bool status, string[] errors)
        {
            this.Status = status;
            this.ErrorMessages = errors;
        }

        public RachaoBusinessException(bool status, string errorMessage)
        {
            this.Status = status;
            this.ErrorMessages = new string[]{ errorMessage  };
        }

        #endregion

    }
}
